package com.kpf.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 通过feign来方式来调用接口 - 消费者
 *
 * @author shiwen
 * @date 2021/2/17
 */
@SpringBootApplication
@EnableConfigurationProperties
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.kpf.springcloud"})
@ComponentScan("com.kpf.springcloud")
@EnableSwagger2
public class FeignConsumer_80 {

    public static void main(String[] args) {
        SpringApplication.run(FeignConsumer_80.class, args);
    }

}